layui.define(function (exports) {
  var $ = layui.$,
    layer = layui.layer,
    laytpl = layui.laytpl,
    setter = layui.setter,
    view = layui.view,
    admin = layui.admin;
  var api = {

    // host: "http://192.168.43.234:8081/api",
    // imghost: "http://192.168.43.234:8081",

    host: "http://192.168.1.5:8022/api",
    imghost: "http://192.168.1.5:8022",
    
    appid: 'ww9596cd564f80c691',
    redirect_uri: 'http%3A%2F%2Fzhangxuyi.goho.co%2Flc%2F',
    //登入
    login: "/login/login.json",
    logout: "/login/logout.json",
    // 更改密码
    updatePwd: "/tcEamGenEx/updatePwd.json",
    daoru:'/fia/importExcel.json',//设备信息录入--导入设备信息
    daochu:'/fia/exportExcel.json',//设备信息录入--导出模板

    new: {
      one: '/rule/ruleList.json',//规则编号列表
      two: '/rule/selectDetails.json',//详情
      three: '/rule/selectDetails.json',
      fore: '/rule/updateRule.json',
      look: '/rule/preview.json',
    },
    
    //巡检项目
    newProject: "/project/insertProject.json", // 新建项目  post
    selectProjectList: "/project/selectProjectList.json", // 查询列表  get
    selectDetailById: "/project/selectDetailById.json", // 巡检项目修改回显
    batchUpdateProject: "/project/batchUpdateProject.json", //修改巡检项目
    batchUpdateIsDelN: "/project/batchUpdateIsDelN.json", //停用
    batchUpdateIsDelY: "/project/batchUpdateIsDelY.json", //启用
    selectByList_llp: "/plan/selectByList.json",  //列定制
    deleteInSp_llp:"/project/deleteInSp.json",  //删除项目
    //设备巡检
    //设备详情
    xbxq: {
      table1: "/fil/selectAllByEquipCode1.json", //相关工单  true
      table2: "/fia/selectStatChgLog.json", //状态变更记录 true
      table3: "/do/selectByModelId.json", //相关文档 true
      table4: "/fia/ImaFii.json", //关联备品备件
      table5: "/fiw/consumptionRecord.json", //备品备件消耗记录
      table6: "/fia/selectInfoChgLog.json", //设备信息变更记录  true
      table7: "/fiw/equipmentResume.json", //设备履历 true
      table8: "", //Scada
      table9: "/pmm/selectPmnDetailsList.json", //请采购记录 true
      table10: "/fia/selectDevParam.json" //设备参数
    },


    // {设备信息录入}
    inputFiaFileList_llp: "/fia/inputFiaFileList.json", //列表

    selectFic01_llp: "/fia/selectFic01.json", //设备类型

    selectFiaPmc01: "/fia/selectFiaPmc01.json", //供应商

    selectFiaSeriesId: "/fia/selectFiaSeriesId.json", //设备系列

    selectFiaFii02: "/fia/selectFiaFii02.json", //设备型号

    selectCoaltDept_llp: "/fil/selectCoaltDept.json", //设备部门下拉

    selectAzpPeople_llp: "/tcEamGenEx/selectAzpPeople.json", //保管人

    selectFiaUser: "/fia/selectFiaUser.json", //设备调机人员

    AzpSelectAllAzp_llp: "/fil/AzpSelectAllAzp.json", //账套

    AzpSelectAllAzp1:"/fil/AzpSelectAllAzp1.json",

    upload_llp: "/fia/upload.json", //文件上传

    insertFiaFile: "/fia/insertFiaFile.json", //插入表单

    selectFactoryName_llp: "/tcEamFactory/selectFactoryName.json", //厂房

    selectDevFactoryName_llp: "/tcEamDevFtyFactory/selectDevFactoryName.json",  //楼层

    selectFiaProcId: "/fia/selectFiaProcId.json", // 站别/工序

    selectFiaLineId: "/fia/selectFiaLineId.json", //  线别

    selectProducts_llp: "/fia/selectProducts.json",   //可生产产品类型

    selectCapacitys_llp: "/fia/selectCapacitys.json",   //机台能力

    //设备浏览2
    sbll: {
      label: "/fia/selectAllFiaFile.json", //POST
      left_nav: "/fia/selectFiaFactory.json", //POST
      render_table: "/fia/selectFiaListByFicFty.json", //POST
      table_on: "home/branch-one/detailed", //lay-href页面跳转
    },
    alert: "./src/views/home/alert/Customized.html", //列定制弹窗
    // 列定制
    columnCustom: "/customizing/selectList.json",
    //设备信息浏览--详细信息
    xxxx: {
      views_one: "/fia/selectDetailsFiaFile.json", //POST
      views_two: "/fia/selectCapacity.json", //POST
      views_three: "/fia/selectProduct.json", //POST
      views_fore: "/fia/selectDevParam.json", //POST
    },
    edit_url: "/home/branch-one/detailed-edit#/?id=", //跳转到编辑页面
    //设备信息浏览--详细信息--编辑
    xxxx_edit: {
      edit: "/fia/updateFiaFileDetails.json",
    },

    //设备信息查询
    xxcx: {
      tcDetailFia01: "/fia/selectFia01.json", //设备编号 
      fia011: "/fia/selectFia011.json", //资产编号 
      fic01: "/fia/selectFic01.json", //设备类型 
      fiaId: "/fia/selectStatChgLog.json", //设备状态
      tcProcName: "/fia/selectFiaProcId.json", //所在站别 
      tcSeriesName: "/fia/selectFiaSeriesId.json", //设备系列 
      fii02: "/fia/selectFiaFii02.json", //设备型号 
      pmc081: "/fia/selectFiaPmc01.json", //供应商 
      selectPerSon_llp:"/fia/selectPerSon.json", //保管人
      gen02: "/fia/selectFia10.json", //保管人 
      gen01: "/fia/selectFiaUser.json", //设备调机人员 
      // param: "/tcEamFactory/selectFactoryName.json", //所在厂区 
      TC_FLR_NAME: "/tcEamDevFtyFactory/selectDevFactoryName.json", //所在楼层 
      gem02: "/fia/selectAllDept.json", //负责部门 
      tcLineName: "/fia/selectFiaLineId.json", //所属线别 
    },


    // 设备文档
    sbwd: {
      doSelectList: "/do/selectList.json", // POST
      doSelectOption: "/do/selectOption.json",
      doDelDocument: "/do/delDocument.json",
    },
    doUpload: "/do/upload.json", // POST
    doUpdateByPrimaryKey: "do/updateByPrimaryKey.json",
    // 列定制
    columnCustom: "/customizing/selectList.json",
    // 列定制保存
    updateColumn: "/customizing/update.json",

    // 巡检计划 & 保养计划
    xjjh: {
      selectByList: "/plan/selectByList.json", // POST
      setIsDeleteStatus: "/plan/setIsDeleteStatus1.json", // POST
      updateStatus: "/plan/updateStatus1.json", // POST
      planGenQuery: "/plan/planGenQuery1.json", // POST
      updatePlan: "/plan/updatePlan.json", // POST
      addDetailAndProjdect: "/plan/addDetailAndProjdect.json", // POST 巡检计划
      addDetailAndProjdect1: "/plan/addDetailAndProjdect1.json", // POST 保养计划
      insertPlan: "/plan/insertPlan.json", // POST
      insertPlan1: '/plan/insertPlan1.json',
      selectPlan: "/plan/selectPlan.json", // POST
      insertMPlan: "/plan/insertMPlan.json", // POST
      insertMPlan1:'/plan/insertMPlan1.json',
      queryAlipayOrderByPayId: "/merchant/pay/queryAlipayOrderByPayId",
      selectMtplanList: "/plan/selectMtplanList.json",
      selectAllMaintenanceList: "/reqmain/selectAllMaintenanceList.json", // POST
      selectByFia01: "/fia/selectByFia01.json", //列表
      selectProjectList: "/project/selectProjectList.json", // 查询列表  get
      getMpidByDeaid: "/plan/getMpidByDeaid.json", // 查询列表  get
      alert: '/do/selectdetails.json',
    },


    selectFiaFii02: "/fia/selectFiaFii02.json", //设备型号
    selectListName: "/ap/selectListName.json", //设备部门下拉
    selectFia10: "/fia/selectFia10.json", //保管人
    selectFiaUser: "/fia/selectFiaUser.json", //设备调机人员
    AzpSelectAllAzp: "/fil/AzpSelectAllAzp.json", //账套
    upload: "/fia/upload.json", //文件上传
    insertFiaFile: "/fia/insertFiaFile.json", //插入表单
    selectFactoryName: "/tcEamFactory/selectFactoryName.json", //厂房
    selectFiaProcId: "/fia/selectFiaProcId.json", // 站别/工序
    selectFiaLineId: "/fia/selectFiaLineId.json", //  线别


    sbdb: {
      del: '/fil/FilFileDeteleByfil01DB.json',//删除接口
    },
    //故障报修
    gzbx: {
      FilFileWxSelectWxList: "/fil/FilFileWxSelectWxList.json", // 列表 post
      FilFileWxInsertSubmit: "/fil/FilFileWxInsertSubmit.json", // 新增报修 post
      selectFiaDetail: "/fil/selectFiaDetail.json", // 设备编号查询 post
      FilFileWxInsertRepairs: "/fil/FilFileWxInsertRepairs.json", // 新增报修获取工单信息 post
      FilFileWxReturnAccessory: "/fil/FilFileWxReturnAccessory.json", // 文件上传 post
      getEmployeeLead: "/fil/getEmployeeLead.json", // 进入详情 post
      FilFileWxSelectWxDetails: "/fil/FilFileWxSelectWxDetails.json", // 获得详情数据
      selectBug: "/fil/selectBug.json", // 获得详情数据
      FilFileWxUpdateAppler: "/fil/FilFileWxUpdateAppler.json", // 设备维修工单转单
      FilFileWxUpdateStateGD: "/fil/FilFileWxUpdateStateGD.json", // 设备维修工单状态更改（申请人确认完成归档）
      FilFileWxUpdateStatePZ: "/fil/FilFileWxUpdateStatePZ.json", // 设备维修工单状态更改（领导批准）
      FilFileWxUpdateStateQD: "/fil/FilFileWxUpdateStateQD.json", // 设备维修工单状态更改（维修人确认完成）
      FilFileWxUpdateStateTH: "/fil/FilFileWxUpdateStateTH.json", // 设备维修工单状态更改（领导退回）
      FilFileWxUpdateStateWX: "/fil/FilFileWxUpdateStateWX.json", // 设备维修工单状态更改（外修）
      selectFiaUser: "/fil/selectFiaUser.json", // 查询新接单人
      downloadFile: "/do/download.json", // 查询新接单人
      del: '/fil/FilFileDeteleByfil01WX.json ',//删除接口
    },

    //设备异动
    FilFileDBSelectFiaFileList: "/fil/FilFileDBSelectFiaFileList.json", //GET
    FilFileDBSelectFilFile: "/fil/FilFileDBSelectFilFile.json", //GET
    FilFileDBInsertFilFileMove: '/fil/FilFileDBInsertFilFileMove.json',//设备调拨
    FilFileDBInsertFilFileMove1: "/fil/FilFileBPInsertFilIma.json",//备品备件调拨
    GetFil01_llp: "/fil/GetFil01.json", //GET
    AzpSelectAllAzp: "/fil/AzpSelectAllAzp.json", //GET
    selectByFia01: "/fia/selectByFia01.json", // POST 设备列表查询接口
    selectProjectList: "/project/selectProjectList.json", // POST 巡检项目查询接口
    AzpSelectAzpCoorigCoAlt: "/fil/AzpSelectAzpCoorigCoAlt.json", //GET
    selectAzpEx: "/fil/selectAzpEx.json",
    selectFia011: "/fil/selectFia011.json", //
    selectAllFilFil01: "/fil/selectAllFilFil01.json", //
    selectApplyer: "/fil/selectApplyer.json", //GET
    FilFileDBSelectFiaFiles: "/fil/FilFileDBSelectFiaFiles.json",
    FilFileBFSelectFiaFiles_hhj: "/fil/FilFileBFSelectFiaFiles.json",//设备报废添加设备{标记}

    FilFileDBSelectFiaFiles1: "/fil/FilFileDBSelectFiaFiles1.json",
    selectFiaDB: "/dev/selectFiaDB.json",
    selectCoaltFty: "/fil/selectCoaltFty.json",
    selectFiaProcId: "/fia/selectFiaProcId.json",
    selectFiaLineId: "/fia/selectFiaLineId.json",
    selectKeeper: "/fil/selectKeeper.json",
    selectCoaltDept: "/fil/selectCoaltDept.json",
    selectFtyFlr: "/fil/selectFtyFlr.json",
    FilFileDBUpdateFileMove2: "/fil/FilFileDBUpdateFileMove2.json",
    FilFileDBUpdateFileMove1: "/fil/FilFileDBUpdateFileMove1.json",
    FilFileDBSelectFilFileDetails: "/fil/FilFileDBSelectFilFileDetails.json",
    selectDBFiaList: "/dev/selectDBFiaList.json",
    queryListTYOrBF: "/ap/queryListTYOrBF.json",
    queryListTYOrBF1: "/ap/queryListTYOrBF1.json",
    insertEquipmentTYOrBF: "/ap/insertEquipmentTYOrBF.json",
    selectWorkOrderByTY: "/ap/selectWorkOrderByTY.json",
    selectAssociatedDevice: "/ap/selectAssociatedDevice.json",
    selectListDev: "/dev/selectList.json",
    selectdetails: "/dev/selectdetails.json",
    selectFic01: "/fia/selectFic01.json",
    selectAllSeriesList: "/fia/selectAllSeriesList.json",
    fiaselectAllPmc01: "/fia/selectAllPmc01.json",
    selectAllFii02: "/fia/selectAllFii02.json",
    devinsertdoc: "/dev/insertdoc.json",
    devsendBGOA: "/dev/sendBGOA.json",
    devselectdetails: "/dev/selectdetails.json",
    updateByPrimaryKey: "/dev/updateByPrimaryKey.json",
    devdelDevAlt: "/dev/delDevAlt.json",
    devupdatetDevAlt: "/dev/updatetDevAlt.json",
    dModificationPreservation: "/ap/dModificationPreservation.json",
    iModificationPreservation: "/ap/iModificationPreservation.json",
    devinsertDevAlt: "/dev/insertDevAlt.json",
    filinsertDevDB: "/fil/insertDevDB.json",
    fildeleteDevDB: "/fil/deleteDevDB.json",
    filupdateDevDB: "/fil/updateDevDB.json",
    filupdateFilDB: "/fil/updateFilDB.json",   //标记
    updateFilTYQY_hhj: "/fil/updateFilTYQY.json",//设备停用启用编辑{标记}
    updateFilBF_hhj: "/fil/updateFilBF.json",//设备报废编辑
    selectDevAltBody: "/dev/selectDevAltBody.json",
    preservationEquipmentTYOrBF1: "/ap/preservationEquipmentTYOrBF1.json",
    insertEquipmentTYOrBF1: "/ap/insertEquipmentTYOrBF1.json",
    preservationEquipmentTYOrBF: "/ap/preservationEquipmentTYOrBF.json",
    insertEquipmentTYOrBF: "/ap/insertEquipmentTYOrBF.json",
    returnBFFil01: "/ap/returnBFFil01.json",   //设备报废创建工单编号
    returnQYFil01: "/ap/returnQYFil01.json",    //停用启用
    updateByPrimaryBatch_llp: "/dev/updateByPrimaryBatch.json",  //post


    //菜单
    getMenu: "/menu/getMenu.json",
    getUserMenu: "/menu/getUserMenu.json",
    selectRoleMenu: "/menu/selectRoleMenu.json",
    deleteRoleMenu: "/menu/deleteRoleMenu.json",
    insertRoleMenu: "/menu/insertRoleMenu.json",
    deleteMenu: "/menu/deleteMenu.json",
    updateMenu: "/menu/updateMenu.json",
    insertMenu: "/menu/insertMenu.json",

    //保养记录
    maintain: {
      Record: "/plan/listMtJointNo.json",
      Record1: "/plan/listMtJointNo1.json",
      ipt4: '/tcEamGenEx/selectPeople.json',
    },

    //  日历
    xjrl: {
      workSheetByMonthOrWeek: '/ap/calendar/workSheetByMonthOrWeek.json',
      selectMaintainMonthOrWeekParam: '/ap/fil/selectMaintainMonthOrWeekParam.json',
    },
    byrl: {
      workSheetByMonthOrWeek: '/ap/calendar/workSheetByMonthOrWeek2.json',
      selectMaintainMonthOrWeekParam: '/ap/fil/selectMaintainMonthOrWeekParam2.json',
    },
    // workSheetByMonthOrWeek: "/ap/calendar/workSheetByMonthOrWeek.json",//工单日历接口
    // selectMaintainMonthOrWeekParam: "/ap/fil/selectMaintainMonthOrWeekParam.json",//

    // 维修保养模块（保养项目)
    insertSelective: "/reqmain/insertSelective.json", //新增项目
    selectAllMaintenanceList: "/reqmain/selectAllMaintenanceList.json", //保养项目
    updateSelectByKey: "/reqmain/updateSelectByKey.json", //编辑保养项目
    deleteMaintenance: "/reqmain/deleteMaintenance.json", //删除保养项目
    selectdetails_llp: "/do/selectdetails.json",  //附件
    deleteMaint_llp:"/reqmain/deleteMaint.json",
    selectoption: "/do/selectOption.json", // 相关文档
    selectList: "/do/selectList.json", //相关维护

    // 故障类型(模块)
    selectBugList: "/bug/selectBugList.json", //相关维护故障类型
    insert: "/bug/insert.json", //相关维添加（新增故障类型）
    updateBug: "/bug/updateBug.json", //相关维护修改


    //人员管理模块
    selectStaffList: "/tcEamGenEx/selectStaffList.json",   // 人员管理模块（new）

    setStaff: "/tcEamGenEx/setStaff.json",   // 修改人员信息

    delete_llp: "/tcEamGenEx/delete.json",   // 删除

    addGenEx: "/tcEamGenEx/addGenEx.json",  //员工录入

    selectPeople: "/tcEamGenEx/selectPeople.json",  // 员工录入（弹出层）

    selectPeople_llp: "/tcEamGenEx/selectPeople1.json",  // 员工工号

    get_llp: "/api/tcEamGenEx/get.json",   //权限回显效果



    // 班次管理模块（new）
    selectHrShiftList: "/hr/selectHrShiftList.json",   // 班次管理查询列表
    selectNotHrShiftGen01_llp:"/hr/selectNotHrShiftGen01.json", //添加人员
    selectGenListByShiftId: "/hr/selectGenListByShiftId",  // 班次管理下面的那个表格
    deleteCategory: '/do/deleteCategory.json',//相关维护-- 文档类型删除
    deleteShift: "/hr/deleteShift.json",  //  班次管理删除
    updateShift: "/hr/updateShift.json",  // 班次编辑
    insertPerson: "/hr/insertPerson.json",  //根据班次插入人员
    deleteHrShift: "/hr/deleteHrShift.json", //删除班次中的人员
    insertShift: "/hr/insertShift.json",  // 新增班次
    selectAllGen01: "/hr/selectAllGen01.json",  // 查询人员编号（模糊查询）
    selectGenDetail: "/hr/selectGenDetail.json", // 根据人员编号查询信息

    selectGSFty: "/fil/selectGSFty.json",  // 厂房
    selectFtyFlr: "/fil/selectFtyFlr.json",  //传ID(楼层)
    selectFiaProcId: "/fia/selectFiaProcId.json",  // 站
    selectFiaLineId: "/fia/selectFiaLineId.json",  // 线别



    // 角色管理模块
    RoleselectByParamList: "/role/selectByParamList.json",    //查询角色列表

    RoleGenSelect: "/role/selectUserByRoleId.json",           //查询某个角色下的人员

    RoleGenDel: "/role/delUserRole.json",                     //删除用户角色

    RolePremitList: "/hr/findAllHrpermit.json",               //查询所有的权限

    RoleNotGenSelect: "/role/selectNotUserByRoleId.json",     //查询非某个角色下的人员

    insertUserForRole: "/role/insertUserForRole.json",        //添加角色人员

    insertRoleforPermit: "/role/insertRoleforPermit.json",    //添加角色权限

    selectRoleforPermit: "/role/selectRoleforPermit.json",    //查询角色所以权限

    updateRoleforPermit: "/role/updateRoleforPermit.json",     //给角色修改权限

    // 班次管理查询列表
    selectHrShiftList: "/hr/selectHrShiftList.json",
    // 班次管理下面的那个表格
    selectGenListByShiftId: "/hr/selectGenListByShiftId",
    //  班次管理删除
    deleteShift: "/hr/deleteShift.json",
    // 班次编辑
    updateShift: "/hr/updateShift.json",
    //根据班次插入人员
    insertPerson: "/hr/insertPerson.json",
    //删除班次中的人员
    deleteHrShift: "/hr/deleteHrShift.json",
    // 新增班次
    insertShift: "/hr/insertShift.json",

    // 查询人员编号（模糊查询）
    selectAllGen01: "/hr/selectAllGen01.json",
    // 根据人员编号查询信息
    selectGenDetail: "/hr/selectGenDetail.json",

    // 厂房
    selectGSFty: "/fil/selectGSFty.json",
    //传ID(楼层)
    selectFtyFlr: "/fil/selectFtyFlr.json",

    //备品调拨
    FilFileBPSelectList: "/fil/FilFileBPSelectList.json",
    selectIma: "/fil/selectIma.json",
    FilFileBPUpdateFilIma: "/fil/FilFileBPUpdateFilIma.json",
    FilFileBPUpdateFilIma2: '/fil/FilFileBPUpdateFilIma2.json',
    deleteSpFil: '/fil/deleteSpFil.json',
    addSpFim: '/fil/addSpFim.json',
    updateSpFim: '/fil/updateSpFim.json',
    batchUpdatFil01: '/fil/batchUpdatFil01.json',

    //备品备料库存
    spareParts: {
      list1: "/IF/selectImgFile.json",
      list2: "/ima/selectImaFileRecord.json", //出入库记录
      list3: "/pmk/selectPmlDetailsByFia.json", //请购记录
      list4: "/pmm/selectList.json", //采购记录
      list5: "/fiw/queryListUpdateRecord.json", //更换记录
      list6: "/fia/selectByassociated.json", //关联设备
      search_one: "/IF/selectImd.json", //仓库
      search_two: "/fil/AzpSelectAllAzp.json", //公司
      tree: '/ima/selectSpType.json',
      del: '/fil/FilFileDeteleByfil01BP.json',//删除接口
    },

    //角色管理
    jsgl: {
      table1: "/ap/selectNotUserByRoleId.json" //添加人员弹窗
    },
    // 巡检工单
    pushPlan_llp: "/order/pushPlan.json",
    // 保养工单:{保养计划}
    pushPlan01_llp: "/order/pushPlan1.json",
    // 备品备件调拨详情
    FilFileBPSelectDetails_llp: "/fil/FilFileBPSelectDetails.json",
    FilFileBPSelectFimIma: '/fil/FilFileBPSelectFimIma.json',
    //信息变更批量删除
    FilFileDeteleByfil01_llp: "/fil/FilFileDeteleByfil01.json",
    //设备报废批量删除
    deleteBFPreservation_llp: "/ap/deleteBFPreservation.json",
    //设备停用启用批量删除
    deleteTYPreservation_llp: "/ap/deleteTYPreservation.json",

    // 巡检和保养单独页面
    task_selectTask_llp: "/task/selectTask.json",
    //巡检和保养单独页面(时间)
    task_update: "/task/update.json",
    //开关
    stop_llp: "/task/stop",


    // 信息变更批量删除
    delFilFileBG_llp: "/dev/delFilFileBG.json",
    // 设备异动
    FilFileDBSelectFiaFiles2_llp: "/fil/FilFileDBSelectFiaFiles2.json",
    //设备停用启用二次添加设备
    FilFileBFSelectFiaFiles2_hhj: "/fil/FilFileBFSelectFiaFiles2.json",
    ispermit_zfj: "/order/showAndHide.json",//是否隐藏转单按钮
    // 巡检工单批量删除
    delFilFilexj_llp: "/order/delFilFilexj.json",
    // 保养工单批量删除
    delFilFileby_llp: "/order/delFilFileby.json",
    // 
    deleteCategory_llp: "/do/deleteCategory.json"
  };


  //对外暴露的接口
  exports("api", api);
});